package com.zz.springboot.manager.impl;

import com.zz.springboot.anno.ImportExcelMark;
import com.zz.springboot.manager.NumDictionaryManager;
import com.zz.springboot.mapper.NumDictionaryMapper;
import com.zz.springboot.model.NumDictionary;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class NumDictionaryManagerImpl implements NumDictionaryManager {

    @Autowired
    NumDictionaryMapper numDictionaryMapper;

    @Override
    @ImportExcelMark
    public Integer insertBatch(List<NumDictionary> list) {

        return numDictionaryMapper.insertBatch(list);
    }

    @Override
    public List<NumDictionary> selectAllData() {
        return numDictionaryMapper.selectAll();
    }
}
